package com.example.demo.service;

import com.example.demo.pojo.Backgrounduser;
import com.example.demo.pojo.Warehouse;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BackgrounduserService {

    int deleteByPrimaryKey(Integer backgrounduserid);

    int insert(Backgrounduser record);

    int insertSelective(Backgrounduser record);

    Backgrounduser selectByPrimaryKey(Integer backgrounduserid);

    Backgrounduser selectByName(String accountNumber);

    int updateByPrimaryKeySelective(Backgrounduser record);

    int updateByPrimaryKey(Backgrounduser record);

    //查询所有后台用户
    List<Backgrounduser> selectBackgrounduser();

    //分页查询
    Page<Backgrounduser> select(int pageNum, int pageSize);

    //根据后台用户账号查询
    Backgrounduser selectByaccountNumber(String accountNumber);
}
